#!/bin/sh

# Include java-wrappers
. /usr/lib/java-wrappers/java-wrappers.sh

JAVA_CLASSPATH="/usr/lib/jni:/usr/lib/java"

find_java_runtime java6

find_jars log4j-1.2 commons-lang antlr-runtime xstream xpp3

JAVA_CLASSPATH=$JAVA_CLASSPATH:/usr/share/regex-renamer/regex-renamer.jar

cd /usr/share/regex-renamer

run_java br.com.renatoccosta.renamer.Main "$@"